﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Green.AgileMappper
{
    /// <summary>
    /// 代码生成规则
    /// </summary>
    public interface ICodeMappingRule
    {
        /// <summary>
        /// 根据 To得到From
        /// </summary>
        /// <param name="from"></param>
        /// <param name="to"></param>
        string CodeWarpFrom(object from, object to);
        /// <summary>
        /// 根据From得到To
        /// </summary>
        /// <param name="from"></param>
        /// <param name="to"></param>
        string CodeWarpTo(object from, object to);
    }
}
